from django.test import TestCase

# Create your tests here.


def outer(fn):
    def inner(*args, **kwargs):
        print('执行前')
        ret = fn(*args, **kwargs)
        print('执行后')
        return ret
    return inner


@outer
def fn(name):
    print(name)
    return name


print(fn('lxx'))